package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/*
 * 作者：m鹏h
 * 时间；2023/8/14 19:49
 * 描述：
 **/
@Data
@ToString
@TableName(value = "train")
public class Train {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String trainPhoto;
    private String trainName;
    private String labId;
    private Integer takePeoNum;
    private String trainRate;
    private String trainJj;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date  trainStartTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date trainStartEnd;
    private Integer trainOrder;
    private Integer trainStatus;
}
